package vip.zhenzicheng.design_patterns.decorator;

/**
 * 快餐类(抽象构件角色)
 *
 * @author zhenzicheng
 * @date 2022-05-26 09:55
 */
public abstract class FastFood {

  private float price;//价格
  private String desc; //描述

  public FastFood(float price, String desc) {
    this.price = price;
    this.desc = desc;
  }

  public FastFood() {
  }

  public float getPrice() {
    return price;
  }

  public void setPrice(float price) {
    this.price = price;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public abstract float cost();
}
